-- GENERATED SPELL FOR [Reef Crawler] --


function spell0_2235(pUnit, Event) --@Muscle Tear,n/a--
pUnit:FullCastSpellOnTarget(12166,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2235', 5292, 1)
end

function Sorts_2235(pUnit, Event)
local choix_sorts_2235 = math.random(0, 0)
if choix_sorts_2235 == 0 then
pUnit:RegisterEvent('spell0_2235', 1, 1)
end
end

function mob2235_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2235', math.random(1500, 3000), 1)
end

function mob2235_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2235_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2235_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2235, 1, 'mob2235_Action')
RegisterUnitEvent(2235, 2, 'mob2235_Leave')
RegisterUnitEvent(2235, 3, 'mob2235_Kill')
RegisterUnitEvent(2235, 4, 'mob2235_Die')
